using System;
using System.Management;
using System.Security.Cryptography;
using System.Text;

public class WMICardGrab {
    private static string smethod_0() {
        string str = string.Empty;
        try {
            ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive");
            uint num2 = 0;
            foreach (ManagementObject obj2 in searcher.Get()) {
                num2 = Convert.ToUInt32(obj2["signature"].ToString());
            }
            str = num2.ToString();
        }
        catch {
        }
        return str;
    }

    public static string smethod_1() {
        try {
            ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia");
            string str = null;
            using (ManagementObjectCollection.ManagementObjectEnumerator enumerator = searcher.Get().GetEnumerator()) {
                if (enumerator.MoveNext()) {
                    ManagementObject current = (ManagementObject)enumerator.Current;
                    str = current["SerialNumber"].ToString().Trim();
                }
            }
            return str;
        }
        catch {
            return "ZEDVDR8F";
        }
    }

    private static string smethod_2() {
        string str2;
        string str = string.Empty;
        try {
            ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_Processor");
            foreach (ManagementObject obj2 in searcher.Get()) {
                str = obj2["ProcessorId"].ToString();
            }
            return str;
        }
        catch {
            str2 = "BFEBFDUKEY01067A";
        }
        return str2;
    }

    public static string smethod_3() {
        byte[] bytes = Encoding.ASCII.GetBytes(smethod_1() + smethod_2());
        return BitConverter.ToString(SHA1.Create().ComputeHash(bytes)).Replace("-", "").Substring(0, 0x10);
    }

    public static string smethod_4(string string_0) {
        byte[] buffer = new MD5CryptoServiceProvider().ComputeHash(Encoding.ASCII.GetBytes(string_0));
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < buffer.Length; i++) {
            builder.AppendFormat("{0:x2}", buffer[i]);
        }
        return builder.ToString();
    }
}

